package com.maigao.util;

import java.text.DecimalFormat;

public class NumberUtils {

    public static String formatDouble(Double num) {
        return formatDouble(num, "#0.00");
    }

    public static String formatDouble(Double num, String formate) {
        DecimalFormat df = new DecimalFormat(formate);
        return df.format(num);
    }
}
